import request from '@/utils/request'

const api_name = `/user/schedule`

export default {
    getBookingScheduleRule(page, limit, hoscode, depcode) {
        return request({
            url: `${api_name}/${page}/${limit}/${hoscode}/${depcode}`,
            method: 'get'
        })
    },
    
    findScheduleList(hoscode, depcode, workDate) {
        return request({
            url: `${api_name}/findScheduleList/${hoscode}/${depcode}/${workDate}`,
            method: 'get'
            })
    },
    getSchedule(id) {
        return request({
            url: `${api_name}/getSchedule/${id}`,
            method: 'get'
        })
    }
}